<?php
include("../conn.php");

$query = mysql_query("select * from coupon_activity_tu order by type");
$coupon_activity_tu = array();
$i=0;
while ($row = mysql_fetch_assoc($query)) {
	$coupon_activity_tu[$i][type] = $row[type];
	$coupon_activity_tu[$i][image] = $row[image];
	$i++;
}
$arr = array('code' => 200, 'msg' =>'查询信息成功', 'data' => $coupon_activity_tu);
echo json_encode($arr);